package com.sc.smartcommunity.domain;

/**
 * @author Chenke Zhao
 * @date 2025/9/15 15:40
 * @description Moment
 */
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 朋友圈动态
 * @author Chenke Zhao
 */
@Data
@TableName("moment")
public class Moment {

    @TableId(type = IdType.AUTO)
    private Long id;              // 动态ID

    private Long userPhone;          // 发布用户手机号

    private String content;       // 文本内容

    private String images;        // 图片地址（多图用逗号分隔）

    private Integer likeCount;    // 点赞数

    private Integer commentCount; // 评论数

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;  // 发布时间

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;  // 修改时间

    private Integer status;       // 状态：0正常 1仅自己可见 2删除

    public Moment() {
    }

    public Moment(Long id, Long userPhone, String content, String images, Integer likeCount, Integer commentCount, LocalDateTime createTime, LocalDateTime updateTime, Integer status) {

        this.id = id;
        this.userPhone = userPhone;
        this.content = content;
        this.images = images;
        this.likeCount = likeCount;
        this.commentCount = commentCount;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(Long userPhone) {
        this.userPhone = userPhone;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
